package com.zhonglz.designPattern.observer.listener;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import com.zhonglz.designPattern.observer.event.ModelEvent;

/***
 * 另外一个Model事件的监听器，希望比ModelEventListener要早执行
 * @author Administrator
 *
 */
@Component
@Order(0)
public class ModelEventListenerB implements EventListener<ModelEvent>{
	@Override
    public void process(ModelEvent event) {
        System.out.println("process 2." + event.getSource());
    }
}
